<#include "header.htm"/>

				<form action="${JForumContext.encodeURL("/jforum")}" method="post" name="privmsg_list" id="privmsg_list">
				<input type="hidden" name="module" value="${moduleName}" />
				<input type="hidden" name="action" value="delete" />


				<script type="text/javascript">
				function select_switch(status) 
				{
					for (i = 0; i < document.privmsg_list.length; i++) {
						document.privmsg_list.elements[i].checked = status;
					}
				}
				</script>


<fieldset class="display-options">
	
	<h5>

			<#if !inbox?default(false)>
				<a href="${JForumContext.encodeURL("/pm/inbox")}">
			</#if>
				${I18n.getMessage("PrivateMessage.inbox")}
			<#if !inbox?default(false)>
				</a>
			</#if>
			<span style="color: #28313F;">&nbsp;&bull;&nbsp;</span>
			<#if !sentbox?default(false)>
				<a href="${JForumContext.encodeURL("/pm/sentbox")}">
			</#if>
				${I18n.getMessage("PrivateMessage.sentbox")}
			<#if !sentbox?default(false)>
				</a>
			</#if>
</h5>



		</fieldset>

<div class="topic-actions">
		<div class="buttons">
			<div class="post-icon" title="${I18n.getMessage("PrivateMessage.composeMessage")}">
			   <div class="newpm-icon"><a href="${JForumContext.encodeURL("/pm/send")}"><span></span>${I18n.getMessage("PrivateMessage.composeMessage")}</a></div>
			</div>
		</div>
	
</div>

		<#assign len = pmList.size()>
    	<#if (len > 0)>
<div class="forumbg">

		<div class="inner"><span class="corners-top"><span></span></span>
		<ul class="topiclist">
			<li class="header">
			
				<dl class="icon">
					<dt>${I18n.getMessage("PrivateMessage.message")}</dt>
					<dd class="mark">${I18n.getMessage("PrivateMessage.mark")}</dd>
				</dl>
			</li>
		</ul>
		<ul class="topiclist topics">
						<#list pmList as pm>
						<#if pm_index % 2 == 0>
							<#assign rowColor = "bg2">
						<#else>
							<#assign rowColor = "bg1">
						</#if>
			<li class="row ${rowColor}">
			  	<#if pm.type == NEW>
			  	     <dl class="icon" style="background-image: url(${contextPath}/templates/${templateName}/img/topic_unread.gif); background-repeat: no-repeat;">
				<#else>
			  	     <dl class="icon" style="background-image: url(${contextPath}/templates/${templateName}/img/topic_read.gif); background-repeat: no-repeat;">
				</#if>
			    	<dt>
						
						<a href="${JForumContext.encodeURL("/pm/read/${pm.id}")}" class="topictitle">${pm.post.subject?html}</a> 
						<br>
						
						 
						<#if inbox?default(false)>
							${I18n.getMessage("by")} <a href="${JForumContext.encodeURL("/user/profile/${pm.fromUser.id}")}" style="color: #AA0000;" class="username-coloured">${pm.fromUser.username}</a> &raquo; ${pm.formatedDate}
						<#else>
							to <a href="${JForumContext.encodeURL("/user/profile/${pm.toUser.id}")}" style="color: #AA0000;" class="username-coloured">${pm.toUser.username}</a> &raquo; ${pm.formatedDate}
						</#if>
						
						
					</dt>
					<dd class="mark"><input type="checkbox" name="id" value="${pm.id}"></dd>
				</dl>
			</li>
			</#list>
</ul>
		<span class="corners-bottom"><span></span></span></div>
	</div>

<div class="topic-actions">

	<fieldset class="display-actions">
	
		<div class="buttons">
			<div class="post-icon" title="${I18n.getMessage("PrivateMessage.composeMessage")}">
			   <div class="newpm-icon"><a href="${JForumContext.encodeURL("/pm/send")}"><span></span>${I18n.getMessage("PrivateMessage.composeMessage")}</a></div>
			</div>
		</div>
	    <input class="button2" type="submit" value="${I18n.getMessage("PrivateMessage.deleteSelected")}" name="delete" />
		<div><a href="#" onclick="select_switch(true); return false;">${I18n.getMessage("PrivateMessage.markAll")}</a>&nbsp;&bull;&nbsp;<a href="#" onclick="select_switch(false); return false;">${I18n.getMessage("PrivateMessage.unmarkAll")}</a></div>
		

	</fieldset>
	
</div>
</#if>

</form>







<#include "bottom.htm"/>